package service

import (
	"choujiang/common/utils"
	"choujiang/common/db"
	"choujiang/common/consts"
)

func ExchangeScene(scene string) (string, *utils.ErrorType) {
	channel := db.Mgo.GetChannelFromScene(scene)
	if channel == "" {
		return "", consts.ErrInvalidScene
	}
	return channel, nil
}
